Sort Fields
An idiomatic way to handle Pocketbase sorting. Add + before your SortFields object to sort with the records you included on top, or add - if you want those items to come last.
Parameters
fields
the list of fields you want to sort by.
Functions
Link copied to clipboard
Adds the current SortFields to a request's parameters
Link copied to clipboard
Add this in front of a SortFields object to sort the record fields specified in the field list last.
Link copied to clipboard
Add this in front of a SortFields object to sort the record fields specified in the field list first.